package com.emagic.manage.oss.glide;

import android.content.Context;

import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.module.GlideModule;

import java.io.InputStream;

/**
 * TODO 描述该文件做什么
 *
 * @author baoy
 * @version 1.0
 *          Create by 2017/6/26 下午3:22
 */
public class OSSGlideModule implements GlideModule{

    @Override
    public void applyOptions(Context context, GlideBuilder builder) {

    }

    @Override
    public void registerComponents(Context context, Glide glide) {
        glide.register(OSSFile.class, InputStream.class, new OSSUrlLoader.Factory());
    }
}
